#include "teachangepswdform.h"
#include "ui_teachangepswdform.h"

#include "globalvars.h"

TeaChangePswdForm::TeaChangePswdForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::TeaChangePswdForm)
{
    ui->setupUi(this);
}

TeaChangePswdForm::~TeaChangePswdForm()
{
    delete ui;
}

void TeaChangePswdForm::on_pb_changePswd_clicked()
{
    if(ui->le_oldPswd->text() != GlobalVars::g_localUser.getPswd())
    {

    }else if(ui->le_newPswd->text() != ui->le_confirmPswd->text())
    {

    }else
    {
        emit signalChangePswd(ui->le_newPswd->text());
    }
}
